GBML manual / Using the editor

Learning Gbabel

The Learn tab - short lessons you do step by step in the real editor, with a lesson window that lights up the right button, notices when you are done and can do a step for you.

What it is

The Learn tab teaches by letting you do things in the real Gbabel. Each lesson is a handful of small steps. A slim window beside the editor tells you what to do, can light up the right button, and moves on by itself when it sees you did it.

This manual is the place to look a command up. Learn is the place to try one. The Help tab explains what each part of the screen is.

The lessons

Lessons are in groups that open and close like the other sections. Each one says how long it takes and gets a check mark when you finish it. Continue where you left off at the top takes you back to a lesson you left halfway.

Start over (top right of the Learn tab) clears every lesson's progress so the tab looks like your first visit: no check marks, no lesson halfway, no finished challenges. Gbabel asks first, in the page, and it cannot be undone. Settings such as folded groups are kept, and practice games you already made are not deleted. To redo only one lesson, press Restart lesson on it.

GroupLessonWhat you do
Getting startedA tour of GbabelVisit each tab. No project needed.
Your first projectMake a project folder and save it.
Build & Play and the Play tabTurn the project into a game and play it.
Saving and sharingKeep your work safe, and learn about the web page and Windows program exports.
Making gamesA player that walksMake an object, give it a picture and a top-down movement, place it, play. Challenge: make it faster.
A player that jumpsA platformer player with a jump you tune. Challenge: jump higher.
Collect coins and keep scoreA coin, a global score and a HUD. Challenge: make each coin worth 5.
An enemy that chases youDraw a Chaser behavior and use it on an enemy. Challenge: make it faster.
Doors between roomsPlace a linked pair of doors with + Add Door. Challenge: add a second pair.
A health bar and getting hurtA global hp, an enemy that hurts, a HUD bar. Challenge: hurt twice as much.
A pause menuA HUD & Menus menu and Start to pause. Challenge: change the cursor.
A title screenA first room with a menu whose PLAY starts the game. Challenge: add the game's name.
Saving the gamesave_get, save_set and save_commit on the coin game. Challenge: erase the save.
A cutscene with a choiceA dialogue with answers that set a variable your code reads. Challenge: a third answer.
Music and sound effectsA song, a sound from the generator, music_play and sound_play. Challenge: a second sound.
Writing codeEvents: when code runsCreate, Step and Alarm. Challenge: a shorter life.
Variables: names that rememberAn object's own variable and a global. Challenge: a faster hero.
If and else: making choicesHold B to run, then if / else. Challenge: else if.
Scripts: code you can reuseA walk script called by two objects. Challenge: walk backwards.
Objects talking to each otherother, with and global. Challenge: a bigger reward.
The tabs, one by oneThe Room EditorRooms, the object palette, placing and undo. Challenge: place three more.
The Code tabObjects, events and the other sections.
The Paint tabOpen and edit your pictures.
Player movementStyles, feels, the jump drawing and Use in an object.
HUD & MenusText, a value, a menu.
The MapSee every room, add one and move it. Challenge: a row of three rooms.
CutscenesA Dialogue line and an answer to pick. Challenge: a pan, then talk.
PathsDraw a route, close and smooth it, make an object follow it.
ParticlesStart from a ready-made effect, change it, fire it from code.
Overlay EffectsMake an object flash. Challenge: make a text effect.
Music & SoundsMake a sound effect with the generator and play it from code. Challenge: a second sound.
Play & InspectorPause, step one frame, read a variable and change it (needs a game that runs).
BehaviorsStart from a ready-made behavior and use it in an object.
AnimationsAn idle and a walk animation, played from code. Challenge: faster feet.
ConversationsA dialogue with a speaker, a question and answers, played through and started from code. Challenge: add a Check.
CharactersA character with a portrait and a typing sound, and an expression with its own effects. Challenge: a second character.
Dialogue in a cutsceneA cutscene that plays a dialogue, then branches on the answer with Jump If.
Tables (the Database)A table, read two ways from code, and a Varying value changed while the game runs. Challenge: a second column.

The lesson window

Starting a lesson opens the lesson window near the middle of the screen. It stays on every tab, so a lesson can go from the Code tab to the Room Editor and back. It has a soft glow so it is easy to find, and it glides out of the way if it would cover the thing a step is about, or a box that pops up for it. Drag its title bar to put it elsewhere, press Pin to stand it against the right edge (drag that edge to change its width) and Float to let it go. Gbabel remembers where you left it. Press the x to leave: your place is kept.

One step

Practice projects

A lesson about making a game, or about writing code, starts by copying a small practice project into a new folder you pick. Your own projects are never touched. Pick the folder that holds your projects, not a project folder itself.

A lesson about a tab asks whether to use a practice project or the project you have open.

Challenges

Some lessons end with a challenge, a goal to reach on your own. Hint gives a nudge and Show me how shows the answer. Gbabel notices when you reach the goal.

Other ways in

The first screen has New to Gbabel? Take the tour. A project with no objects yet shows a small line under the tabs, Learn how to make a player, which you can close for good.

A lesson that needs something the selected console cannot do has a gray Start button, the same way other settings follow Preferences > Module.

See also: The Code tabPlaying your game inside GbabelPlayer movementHUD and menusBuilding and reading its problemsTips and shortcuts